package com.qms.qep.domain.dto;

import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 批量生成证书数据传输对象
 * 
 * @author qms
 * @date 2023-07-10
 */
public class BatchGenerateDTO {
    
    /** 模板ID */
    private Long templateId;
    
    /** 签发日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date issueDate;
    
    /** 签发人 */
    private String issuer;
    
    /** 生成项目列表 */
    private List<GenerateItem> items;
    
    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public List<GenerateItem> getItems() {
        return items;
    }

    public void setItems(List<GenerateItem> items) {
        this.items = items;
    }

    /**
     * 生成项目
     */
    public static class GenerateItem {
        
        /** 产品ID */
        private Long productId;
        
        /** 批次ID */
        private Long batchId;
        
        /** 检验任务ID */
        private Long taskId;
        
        public Long getProductId() {
            return productId;
        }

        public void setProductId(Long productId) {
            this.productId = productId;
        }

        public Long getBatchId() {
            return batchId;
        }

        public void setBatchId(Long batchId) {
            this.batchId = batchId;
        }

        public Long getTaskId() {
            return taskId;
        }

        public void setTaskId(Long taskId) {
            this.taskId = taskId;
        }
    }
} 